gtk4.git
11 years agoAdd gtk_application_prefers_app_menu()
Ryan Lortie [Mon, 30 Jun 2014 16:16:19 +0000 (12:16 -0400)]
Add gtk_application_prefers_app_menu()

Applications can call this to determine if they should an app menu.
This will be %FALSE on desktop environments that do not have an
application menu like the one in gnome-shell.  It is %FALSE on Windows
and Mac OS.

Applications are completely free to totally ignore this API -- it is
only provided as a hint to help applications that may be interested in
supporting non-GNOME platforms with a more native 'look and feel'.

https://bugzilla.gnome.org/show_bug.cgi?id=722092

11 years agotestsuite: Adapt to changed builtin icon paths
Matthias Clasen [Wed, 2 Jul 2014 21:17:48 +0000 (17:17 -0400)]
testsuite: Adapt to changed builtin icon paths

11 years agoGtkModelButton: Update widget state
Matthias Clasen [Wed, 2 Jul 2014 19:12:46 +0000 (15:12 -0400)]
GtkModelButton: Update widget state

We were only setting the state transiently in ::draw, leading
to various drawing anomalies, such as labels not picking up
the appropriate color from BUTTON styles.

11 years agocssimageicontheme: Handle scale factors correctly
Benjamin Otte [Wed, 2 Jul 2014 17:47:48 +0000 (19:47 +0200)]
cssimageicontheme: Handle scale factors correctly

Code didn't account for the pixbuf returned being scaled.

11 years agoentry: Do not unset selection if failing to update the primary selection
Carlos Garnacho [Wed, 2 Jul 2014 13:35:07 +0000 (15:35 +0200)]
entry: Do not unset selection if failing to update the primary selection

This is expected to happen on wayland and other platforms with no primary selection,
and just leads to the selected text being cleared after any attempt to change the
text selection itself through either mouse/keyboard.

11 years agotextbuffer: Do not unset selection if failing to update the primary selection
Carlos Garnacho [Wed, 2 Jul 2014 13:28:45 +0000 (15:28 +0200)]
textbuffer: Do not unset selection if failing to update the primary selection

This is expected to happen on wayland and other platforms with no primary selection,
and just leads to the selected text being cleared after any attempt to change the
text selection itself through either mouse/keyboard.

11 years agoAdwaita: fix Gedit style tabs color.
Lapo Calamandrei [Wed, 2 Jul 2014 15:52:36 +0000 (17:52 +0200)]
Adwaita: fix Gedit style tabs color.

I also introduced a gab between tabs as in the mockups.

11 years agoAdwaita: fix popover buttons.
Lapo Calamandrei [Wed, 2 Jul 2014 15:27:12 +0000 (17:27 +0200)]
Adwaita: fix popover buttons.

Unfortunatelly labels doesn't change color wrt states.

See https://bugzilla.gnome.org/show_bug.cgi?id=732494

11 years agoAdwaita: proper backdrop state for gtkcalendar header
Lapo Calamandrei [Wed, 2 Jul 2014 13:45:43 +0000 (15:45 +0200)]
Adwaita: proper backdrop state for gtkcalendar header

11 years agoGtkDialog: fix invisible action area
Matthias Clasen [Wed, 2 Jul 2014 04:33:46 +0000 (00:33 -0400)]
GtkDialog: fix invisible action area

When there area explicitly added buttons in the action area,
we were trying to ensure that the action area is visible,
but failed, since we are now hiding the action_box. Fix it
by showing the action_box when things are left in the action
area.

11 years agowayland: Make sure to notify the capability settings when we get capabilities
Jasper St. Pierre [Tue, 1 Jul 2014 19:16:12 +0000 (15:16 -0400)]
wayland: Make sure to notify the capability settings when we get capabilities

Otherwise, we won't notice when we get capabilities, and we'll show app
menus, etc.

11 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 1 Jul 2014 17:55:47 +0000 (19:55 +0200)]
Updated Slovenian translation

11 years agoAdwaita: transition :active buttons faster than the other states
Jakub Steiner [Tue, 1 Jul 2014 15:46:24 +0000 (17:46 +0200)]
Adwaita: transition :active buttons faster than the other states

https://bugzilla.gnome.org/show_bug.cgi?id=732134

11 years agoAdwaita: no border-right on treeview-derived widgets
Jakub Steiner [Tue, 1 Jul 2014 13:42:32 +0000 (15:42 +0200)]
Adwaita: no border-right on treeview-derived widgets

I fear to be opening a can of worms, but it does seem like
something the system theme should deal with.

https://bugzilla.gnome.org/show_bug.cgi?id=731463

11 years agoimprove Calendar styling
Jakub Steiner [Tue, 1 Jul 2014 12:22:54 +0000 (14:22 +0200)]
improve Calendar styling

slightly

https://bugzilla.gnome.org/show_bug.cgi?id=729620

11 years agoRemove separators from GtkFileChooserButton and GtkFontButton
Nikita Churaev [Mon, 23 Jun 2014 18:42:21 +0000 (22:42 +0400)]
Remove separators from GtkFileChooserButton and GtkFontButton

https://bugzilla.gnome.org/show_bug.cgi?id=722633

11 years agoFix "Installation" for Visual Studio 2010+
Chun-wei Fan [Tue, 1 Jul 2014 08:41:41 +0000 (16:41 +0800)]
Fix "Installation" for Visual Studio 2010+

We need to enclose paths containing $(BinDir) with double quotes as it
points to something like c:\foo\gtk+-x.yy.zz, which the copy command on
Windows does not like "+" in paths unless enclosed in quotes.

11 years agoBuild: Provide Simple Support for MSVC 2012/2013
Chun-wei Fan [Tue, 1 Jul 2014 08:17:43 +0000 (16:17 +0800)]
Build: Provide Simple Support for MSVC 2012/2013

As the Visual Studio 2012/2013 are only slightly different from the Visual
Studio 2010 projects, we can provide support for them by using scripts to
copy the Visual Studio 2010 projects, and update the specific parts as
necessary.

Thus, there would be little maintenance overhead for these as only the 2010
projects need to be kept up-to-date as a result.  This might change when we
do get the stack working with WinRT/Metro, but that's going to be another
totally different issue.

11 years agoRevert "Visual Studio Builds: "Install" the Stock Icons"
Chun-wei Fan [Tue, 1 Jul 2014 07:52:34 +0000 (15:52 +0800)]
Revert "Visual Studio Builds: "Install" the Stock Icons"

The stock icons are now built into the GTK+ DLL via resources, so don't
try to install the stock icons, and the icons don't reside in their former
positions anymore, causing messages indicating that the files cannot be
found.

This reverts commit 2e0ce67f8aa7da0cfbcf31e02e60012927fb4193.

11 years agoMSVC Builds: Fix Introspection Builds
Chun-wei Fan [Tue, 1 Jul 2014 05:26:18 +0000 (13:26 +0800)]
MSVC Builds: Fix Introspection Builds

Commit e26bdbda only partially made the necessary changes due to the use of
the deprecated headers in GDK.  Fix that.

11 years agoMSVC Builds: Clean up Introspection Builds
Chun-wei Fan [Tue, 1 Jul 2014 05:15:51 +0000 (13:15 +0800)]
MSVC Builds: Clean up Introspection Builds

Since g-i 1.40.0 we are using the .lib file(s) to determine the DLL(s) that
the introspection files should look for, instead of directly using the
DLL(s) directly, so it is no longer necessary to make copies of the GDK
.lib file to match the <namespace-name>-<namespace-version> convention when
we are building the introspection files for GdkWin32.  Remove that from the
introspection build process as a result.

11 years agoTypo fix in GTK+ common questions
Gergely POLONKAI [Sun, 29 Jun 2014 16:36:00 +0000 (16:36 +0000)]
Typo fix in GTK+ common questions

https://bugzilla.gnome.org/show_bug.cgi?id=732433

11 years agoGtkMessageDialog: Add back the empty csd title
Matthias Clasen [Tue, 1 Jul 2014 01:51:19 +0000 (21:51 -0400)]
GtkMessageDialog: Add back the empty csd title

We don't set use-header-bar for message dialogs, since we
want the buttons in the action area, but we do want a nice
rounded csd titlebar. Add back the box that was used before
to achieve this, when appropriate.

11 years agoGtkDialog: Don't use csd when use-header-bar is FALSE
Matthias Clasen [Mon, 30 Jun 2014 23:26:44 +0000 (19:26 -0400)]
GtkDialog: Don't use csd when use-header-bar is FALSE

https://bugzilla.gnome.org/show_bug.cgi?id=730893

11 years agogtkaboutdialog: support showing buttons in action area
Lars Uebernickel [Wed, 28 May 2014 15:32:21 +0000 (17:32 +0200)]
gtkaboutdialog: support showing buttons in action area

Give GtkAboutDialog buttons in the action area instead of hard-coding
use-header-bar to TRUE. This is for environments which don't have the
Gtk/DialogsUseHeader xsetting turned on.

https://bugzilla.gnome.org/show_bug.cgi?id=730893

11 years agoinspector: Use a better icon on the css classes tab
Matthias Clasen [Mon, 30 Jun 2014 22:51:39 +0000 (18:51 -0400)]
inspector: Use a better icon on the css classes tab

11 years agoGtkScrolledWindow: Enable animated scrolling
Matthias Clasen [Mon, 30 Jun 2014 22:12:39 +0000 (18:12 -0400)]
GtkScrolledWindow: Enable animated scrolling

We use gtk_adjustment_enable_animation to enable animated
updates of the adjustments. Currently, this is enabled
unconditionally, and with a duration that is hardcoded.

https://bugzilla.gnome.org/show_bug.cgi?id=732376

11 years agoGtkAdjustment: Animated updates
Matthias Clasen [Mon, 30 Jun 2014 22:09:50 +0000 (18:09 -0400)]
GtkAdjustment: Animated updates

Add a private API that lets widget opt-in to animated updates of
the adjustment value. When enabled, all calls to
gtk_adjustment_set_value will smoothly transition from the old
value to the new value, using a fixed easing function and a
configurable duration. The animation is tied to the frame clock
of the widget.

By implementing this in GtkAdjustment, we can enable animation
for both scrollbars and keybindings, which are often implemented
in the child widget of the scrolled window.

https://bugzilla.gnome.org/show_bug.cgi?id=732376

11 years agoDeprecate gtk_icon_theme_add_builtin_icon
Matthias Clasen [Fri, 20 Jun 2014 04:49:25 +0000 (00:49 -0400)]
Deprecate gtk_icon_theme_add_builtin_icon

Builtin icons are deprecated in favor of loading icons
from resource paths.

11 years agoMake gtk_icon_theme_add_resource_path public API
Matthias Clasen [Fri, 20 Jun 2014 04:46:09 +0000 (00:46 -0400)]
Make gtk_icon_theme_add_resource_path public API

This makes it possible to look up icons in resources using
the icon theme api, and should be used as a replacement
for installing icons below $pkgdatadir/icons and adding
that location to the search path.

11 years agoGtkIconTheme: Allow unthemed icons from resource paths
Matthias Clasen [Mon, 30 Jun 2014 21:02:41 +0000 (17:02 -0400)]
GtkIconTheme: Allow unthemed icons from resource paths

This makes it pretty straightforward to add individual icons
that don't need to be present in multiple sizes.

11 years agoDrop an extra dir from builtin icons
Matthias Clasen [Mon, 30 Jun 2014 20:23:28 +0000 (16:23 -0400)]
Drop an extra dir from builtin icons

Make icon lookup from resources work without the extra hicolor
component in the path. It is redundant, since we always treat
builtin icons as part of hicolor anyway.

11 years agoGtkIconTheme: Only look at resources for hicolor
Matthias Clasen [Mon, 30 Jun 2014 20:03:03 +0000 (16:03 -0400)]
GtkIconTheme: Only look at resources for hicolor

We want to treat icons coming from resources as builtins that
are looked at as part of Hicolor.

11 years agoGtkIconTheme: Drop an unused parameter
Matthias Clasen [Mon, 30 Jun 2014 19:50:05 +0000 (15:50 -0400)]
GtkIconTheme: Drop an unused parameter

We're always passing FALSE for scale_only, so why bother.

11 years agoTreat unthemed icons the same as force_size for scaling
Matthias Clasen [Mon, 30 Jun 2014 19:45:17 +0000 (15:45 -0400)]
Treat unthemed icons the same as force_size for scaling

This is closer to what we were doing in the past.

11 years agogtk-demo: Only show non-symbolic icons in toolpalette
Matthias Clasen [Mon, 30 Jun 2014 17:28:46 +0000 (13:28 -0400)]
gtk-demo: Only show non-symbolic icons in toolpalette

Otherwise, we get every icon twice. To switch between symbolic
and non-symbolic icons, this css fragment comes in handy:
* { -gtk-icon-style: symbolic; }

11 years agowidget-factory: Use a standard icon name
Matthias Clasen [Mon, 30 Jun 2014 17:24:28 +0000 (13:24 -0400)]
widget-factory: Use a standard icon name

Using edit-find instead of search has the advantage that there
is a symbolic variant of the icon.

11 years agoAdwaita: Make selectable labels work
Matthias Clasen [Mon, 30 Jun 2014 15:35:38 +0000 (11:35 -0400)]
Adwaita: Make selectable labels work

This brings back white-on-blue selection in selectable labels.
https://bugzilla.gnome.org/show_bug.cgi?id=732441

11 years agobuild/win32/vs10/gtk.vcxprojin: Remove References to gtka11y
Chun-wei Fan [Mon, 30 Jun 2014 10:00:26 +0000 (18:00 +0800)]
build/win32/vs10/gtk.vcxprojin: Remove References to gtka11y

...so that Visual Studio will not warn about a reference that no longer
exists.

11 years agogtkcellrendereraccel: Use a GtkInvisible to grab on
Jasper St. Pierre [Mon, 30 Jun 2014 00:54:39 +0000 (20:54 -0400)]
gtkcellrendereraccel: Use a GtkInvisible to grab on

Grabbing on a non-toplevel might not do what we want it to do, since it
will go on the focused widget, not the grabbed widget. Since we don't
focus the widget before clicking on it, that means that putting the
focus somewhere else and then clicking on the accelerator editor will
freeze the app. Additionally, since it's a global system grab that can't
be exited except by a key press that we won't ever get, it effectively
locks up your system as well unless you know how to break the grab or
kill the app. Ouch.

Since doing a device grab on a non-toplevel is generally considered a
bad idea, just don't do it. Use a GtkInvisible and take a grab on that
instead.

11 years agogdkwindow: Fix an accidental code out-of-ordering
Jasper St. Pierre [Sun, 29 Jun 2014 23:49:49 +0000 (19:49 -0400)]
gdkwindow: Fix an accidental code out-of-ordering

There's no semantics change, it just makes things clearer.

11 years agoGtkStyleContext: Avoid over-eager animation cancellation
Matthias Clasen [Sun, 29 Jun 2014 23:33:46 +0000 (19:33 -0400)]
GtkStyleContext: Avoid over-eager animation cancellation

When validating the style context, we are copying the animations
from one StyleValues instance to another, and cancel the old ones.
It turns out that sometimes the old and the new StyleValues are
the same, and in this case, we end up cancelling the animations
for good.

One case where breakage from this was observed is that the spinners
in gtk3-widget-factory stop spinning when you open and close a modal
dialog on page 2. This depends a bit on the window manager; the problem
can only be seen if opening the dialog causes a transition to backdrop.

11 years agogtkmain: One more combine
Jasper St. Pierre [Sun, 29 Jun 2014 22:53:25 +0000 (18:53 -0400)]
gtkmain: One more combine

11 years agogtkmain: Combine two switch cases that are the same
Jasper St. Pierre [Sun, 29 Jun 2014 22:52:50 +0000 (18:52 -0400)]
gtkmain: Combine two switch cases that are the same

11 years agogtkswitch: Fix docs
Jasper St. Pierre [Sun, 29 Jun 2014 22:35:31 +0000 (18:35 -0400)]
gtkswitch: Fix docs

11 years agogtkcellarea: Fix docs
Jasper St. Pierre [Sun, 29 Jun 2014 22:05:49 +0000 (18:05 -0400)]
gtkcellarea: Fix docs

11 years agogdkdevicemanager-xi2: Add debug output for key events
Jasper St. Pierre [Sun, 29 Jun 2014 21:59:38 +0000 (17:59 -0400)]
gdkdevicemanager-xi2: Add debug output for key events

11 years agogdkdevicemanager-xi2: Fix debug outputs for button events
Jasper St. Pierre [Sun, 29 Jun 2014 21:58:56 +0000 (17:58 -0400)]
gdkdevicemanager-xi2: Fix debug outputs for button events

We had the arguments in the wrong order here.

11 years agotests: Remove tests for icontheme properties
Benjamin Otte [Sun, 29 Jun 2014 17:52:37 +0000 (19:52 +0200)]
tests: Remove tests for icontheme properties

These properties have been removed and always return %NULL, so no need
to keep them.

11 years agotestdialog: Add a spinner
Matthias Clasen [Sun, 29 Jun 2014 18:03:14 +0000 (14:03 -0400)]
testdialog: Add a spinner

Trying to track down a problem where animation stops when a modal
dialog is opened and closed.

11 years agowidget-factory: Plug a memory leak
Matthias Clasen [Sun, 29 Jun 2014 03:27:36 +0000 (23:27 -0400)]
widget-factory: Plug a memory leak

11 years agoGtkBuilder: Fix more GMenu leaks in the parser
Matthias Clasen [Sun, 29 Jun 2014 03:19:09 +0000 (23:19 -0400)]
GtkBuilder: Fix more GMenu leaks in the parser

11 years agoGtkMenuTrackerItem: Plug a memory leak
Matthias Clasen [Sun, 29 Jun 2014 02:39:43 +0000 (22:39 -0400)]
GtkMenuTrackerItem: Plug a memory leak

gtk_menu_tracker_get_[verb_]icon both return a reference,
so don't use g_value_set_object, which adds another one.

11 years agoGtkCssImageIconName: Plug a memory leak
Matthias Clasen [Sun, 29 Jun 2014 02:39:02 +0000 (22:39 -0400)]
GtkCssImageIconName: Plug a memory leak

valgrind was complaining that we're not freeing the icon_name.

11 years agoGtkColorEditor: Initialize the allocation x/y
Matthias Clasen [Sun, 29 Jun 2014 02:38:13 +0000 (22:38 -0400)]
GtkColorEditor: Initialize the allocation x/y

11 years agoGtkActionMuxer: Plug a memory leak
Matthias Clasen [Sun, 29 Jun 2014 02:37:14 +0000 (22:37 -0400)]
GtkActionMuxer: Plug a memory leak

valgrind complained that we leak the primary_accels table.

11 years agoRevert "scrolledwindow: fix scrolling with shared adjustment"
Matthias Clasen [Sun, 29 Jun 2014 02:29:57 +0000 (22:29 -0400)]
Revert "scrolledwindow: fix scrolling with shared adjustment"

This reverts commit f0478c3dfdb14c7ad474ed1d2ac989f8e4ecf3c8.
Didn't mean to push this.

11 years agoGtkFileChooserWidget: Remove an errant line
Matthias Clasen [Sun, 29 Jun 2014 01:38:47 +0000 (21:38 -0400)]
GtkFileChooserWidget: Remove an errant line

This was leaking a schema object, and looks like a bad merge.

11 years agoGtkBuilder: Don't leak a reference to constructed GMenus
Matthias Clasen [Sun, 29 Jun 2014 00:21:32 +0000 (20:21 -0400)]
GtkBuilder: Don't leak a reference to constructed GMenus

_gtk_builder_add_object adds a reference, so we need to drop
our initial one.

11 years agoGtkGesture: Don't leak the group link
Matthias Clasen [Sun, 29 Jun 2014 00:15:12 +0000 (20:15 -0400)]
GtkGesture: Don't leak the group link

Found in a valgrind log.

11 years agowidget-factory: Small cleanup
Matthias Clasen [Sat, 28 Jun 2014 20:22:43 +0000 (16:22 -0400)]
widget-factory: Small cleanup

Use gtk_builder_new_from_resource and get rid of an unneeded GError.

11 years agowidget-factory: Make the entry progress stop as well
Matthias Clasen [Sat, 28 Jun 2014 20:19:33 +0000 (16:19 -0400)]
widget-factory: Make the entry progress stop as well

11 years agoGtkEntry: Make progress pulsing smooth
Matthias Clasen [Sat, 28 Jun 2014 19:51:33 +0000 (15:51 -0400)]
GtkEntry: Make progress pulsing smooth

This changes the calculation of activity mode progress in the
same way as was done in GtkProgressBar a while ago, and make it
smooth, using a tick callback.

11 years agowidget-factory: Make the entry progress variable too
Matthias Clasen [Sat, 28 Jun 2014 19:23:29 +0000 (15:23 -0400)]
widget-factory: Make the entry progress variable too

Make the scale that currently controls the speed of the progressbar
control the progress speed in the entry as well.

11 years agoscrolledwindow: fix scrolling with shared adjustment
Stefan Sauer [Sun, 25 May 2014 19:35:14 +0000 (21:35 +0200)]
scrolledwindow: fix scrolling with shared adjustment

The GtkPolicyType set on the scrollbar is just about the presentation. What
matters for scrolling is the adjustment.

https://bugzilla.gnome.org/show_bug.cgi?id=730730

11 years agowidget-factory: Add an icon view
Matthias Clasen [Sat, 28 Jun 2014 15:37:29 +0000 (11:37 -0400)]
widget-factory: Add an icon view

We didn't have one before, and this gives us a chance to show off
rubberbanding and symbolic icon rendering.

11 years agoDisable deprecation warnings for installed reftests
Matthias Clasen [Sat, 28 Jun 2014 15:13:17 +0000 (11:13 -0400)]
Disable deprecation warnings for installed reftests

Otherwise, these fail in continuous.

11 years agowidget-factory: Enable alpha in the color button
Matthias Clasen [Sat, 28 Jun 2014 15:12:23 +0000 (11:12 -0400)]
widget-factory: Enable alpha in the color button

This lets us verify that the theme treats the alpha scale fairly.

11 years agonotification test: Always disable runtime deprecation warnings
Matthias Clasen [Sat, 28 Jun 2014 14:59:41 +0000 (10:59 -0400)]
notification test: Always disable runtime deprecation warnings

These are just not useful in a test that generically deals with
all properties.

11 years agoExclude GtkToggleButton::draw-indicator from the notification test
Matthias Clasen [Sat, 28 Jun 2014 14:58:24 +0000 (10:58 -0400)]
Exclude GtkToggleButton::draw-indicator from the notification test

We reverted to emitting redundant notifications for this, so
don't assert that we don't.

11 years agoGtkButton: warn slightly less
Matthias Clasen [Sat, 28 Jun 2014 14:56:54 +0000 (10:56 -0400)]
GtkButton: warn slightly less

Use gtk_misc_set_alignment when setting x/align on button children
where possible, to avoid the runtime warning that g_object_set
incurs nowadays.

11 years agoAdwaita: minor code refactoring
Lapo Calamandrei [Sat, 28 Jun 2014 13:22:23 +0000 (15:22 +0200)]
Adwaita: minor code refactoring

11 years agoAdwaita: button work
Lapo Calamandrei [Sat, 28 Jun 2014 13:05:06 +0000 (15:05 +0200)]
Adwaita: button work

- finally fixed +|- buttons on inline toolbars
- commented out :focus and :selected for normal buttons since it makes
  flat buttons background blue...

11 years agodocs: Sort GDK_DEBUG values alphabetically
Bastien Nocera [Fri, 27 Jun 2014 10:52:34 +0000 (12:52 +0200)]
docs: Sort GDK_DEBUG values alphabetically

https://bugzilla.gnome.org/show_bug.cgi?id=732330

11 years agodocs: Sort GDK_DEBUG values alphabetically
Bastien Nocera [Fri, 27 Jun 2014 10:46:34 +0000 (12:46 +0200)]
docs: Sort GDK_DEBUG values alphabetically

https://bugzilla.gnome.org/show_bug.cgi?id=732330

11 years agoAvoid a redundant strlen
Matthias Clasen [Sat, 28 Jun 2014 05:51:24 +0000 (01:51 -0400)]
Avoid a redundant strlen

The GString knows perfectly well how long it is.  Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=731158

11 years agoAdwaita: Neuter frames in statusbars
Matthias Clasen [Sat, 28 Jun 2014 05:34:25 +0000 (01:34 -0400)]
Adwaita: Neuter frames in statusbars

Too much.

11 years agoFight deprecation warnings in test
Matthias Clasen [Sat, 28 Jun 2014 04:41:26 +0000 (00:41 -0400)]
Fight deprecation warnings in test

This time, in installed tests.

11 years agoAdding 'no-matches' signal support to gtkentrycompletion
Saurabh [Fri, 27 Jun 2014 16:41:09 +0000 (22:11 +0530)]
Adding 'no-matches' signal support to gtkentrycompletion

Add a new 'no-matches' signal and add a function pointer to gtkentrycompletionclass
and remove one from the padding at the end.

https://bugzilla.gnome.org/show_bug.cgi?id=726566

11 years agoAllow activating an item after single click on a different item
William Jon McCann [Fri, 18 Jan 2013 21:50:47 +0000 (16:50 -0500)]
Allow activating an item after single click on a different item

We were ignoring double click events when a different item was
previously selected.

https://bugzilla.gnome.org/show_bug.cgi?id=484640

11 years agoGtkPrintUnixDialog: Set a higher limit for the number of copies
Matthias Clasen [Sat, 28 Jun 2014 04:20:19 +0000 (00:20 -0400)]
GtkPrintUnixDialog: Set a higher limit for the number of copies

As requested in bug 672676.

11 years agowayland: don't change the cursor if there is no pointer
Emilio Pozuelo Monfort [Mon, 23 Jun 2014 16:21:08 +0000 (18:21 +0200)]
wayland: don't change the cursor if there is no pointer

https://bugzilla.gnome.org/show_bug.cgi?id=732206

11 years agocolorplane: Don't connect to the configure-event signal
Jasper St. Pierre [Thu, 26 Jun 2014 18:16:26 +0000 (14:16 -0400)]
colorplane: Don't connect to the configure-event signal

We want to stop people from using configure events
entirely. GtkDrawingArea synthesizes a configure event, but we can just
make the only user of this functionality stop it, and correct the
documentation to not mention it.

11 years agoImprove popover menu spacing
Matthias Clasen [Sat, 28 Jun 2014 04:00:16 +0000 (00:00 -0400)]
Improve popover menu spacing

Make iconic buttons have a more reasonable height, and add some
space above an iconic row.
https://bugzilla.gnome.org/show_bug.cgi?id=732229

11 years agoFix a documentation copy-paste error
Matthias Clasen [Sat, 28 Jun 2014 03:53:03 +0000 (23:53 -0400)]
Fix a documentation copy-paste error

The color chooser doesn't deal with fonts.

11 years agoRevert "colorplane: Don't connect to the configure-event signal"
Matthias Clasen [Sat, 28 Jun 2014 02:03:11 +0000 (22:03 -0400)]
Revert "colorplane: Don't connect to the configure-event signal"

This reverts commit 886f58e1cf2b4918ae33dc2b6279fd7e61c56827.

This made the color plane go missing.

11 years agoGtkMessageDialog: Don't set x/yalign explicitly
Matthias Clasen [Sat, 28 Jun 2014 01:57:25 +0000 (21:57 -0400)]
GtkMessageDialog: Don't set x/yalign explicitly

The h/valign work fine to give us what we need here, so we
can avoid the runtime deprecation warnings for deprecated
properties.

11 years agowidget-factory: Stop using GtkImageMenuItem
Matthias Clasen [Sat, 28 Jun 2014 01:44:40 +0000 (21:44 -0400)]
widget-factory: Stop using GtkImageMenuItem

A plain GtkMenuItem works just fine here.

11 years agowidget-factory: Stop using the deprecated GtkAlignment::left-padding
Matthias Clasen [Sat, 28 Jun 2014 01:43:04 +0000 (21:43 -0400)]
widget-factory: Stop using the deprecated GtkAlignment::left-padding

These alignments can just be dropped without loss.

11 years agowidget-factory: Don't use deprecated GtkColorButton::color
Matthias Clasen [Sat, 28 Jun 2014 01:40:50 +0000 (21:40 -0400)]
widget-factory: Don't use deprecated GtkColorButton::color

Instead, simply set the rgba property, which accepts the
same value.

11 years agowidget-factory: Drop redundant defaults from the .ui file
Matthias Clasen [Sat, 28 Jun 2014 01:35:49 +0000 (21:35 -0400)]
widget-factory: Drop redundant defaults from the .ui file

In particular, we drop xalign, since it is deprecated.

11 years agoGtkSettings: defensive defaults
Matthias Clasen [Sat, 28 Jun 2014 01:29:18 +0000 (21:29 -0400)]
GtkSettings: defensive defaults

Change the default value of the gtk-decoration-layout setting
to menu:minimize,maximize,close. The masses want it that way.

11 years agoBring back redundant notifications for GtkToggleButton::draw-indicator
Matthias Clasen [Sat, 28 Jun 2014 01:22:40 +0000 (21:22 -0400)]
Bring back redundant notifications for GtkToggleButton::draw-indicator

GtkCheckButton sets a different initial value for this property without
actually changing the declared default, and then relies on change notification
to update other properties (such as xalign). This, combined with glades
insistance on putting default values into ui files creates a situation
where we can't remove the redundant notification for ::draw-indicator
without causing lots of checkboxes to suddenly have centered labels.
This was seen in gnome-terminal, evolution, and other applications.

Therefore, keep the extra notification for now. This can be revisited
when we clean up the button hierarchy.

11 years agoinspector: Chain up in constructed
Matthias Clasen [Fri, 27 Jun 2014 22:43:59 +0000 (18:43 -0400)]
inspector: Chain up in constructed

Its the right thing to do.

11 years agoAdwaita: export the right color for the wm hilight dark var
Lapo Calamandrei [Fri, 27 Jun 2014 14:23:12 +0000 (16:23 +0200)]
Adwaita: export the right color for the wm hilight dark var

11 years agogtkwindow: Refactor out some similar code for grips
Jasper St. Pierre [Thu, 26 Jun 2014 23:47:39 +0000 (19:47 -0400)]
gtkwindow: Refactor out some similar code for grips

11 years agogtkwindow: Merge some similar code
Jasper St. Pierre [Thu, 26 Jun 2014 23:45:55 +0000 (19:45 -0400)]
gtkwindow: Merge some similar code

11 years agogtkwindow: Remove a dead chain-up
Jasper St. Pierre [Thu, 26 Jun 2014 23:43:28 +0000 (19:43 -0400)]
gtkwindow: Remove a dead chain-up

GtkWidget / GtkBin don't have configure-event handlers, so we don't need
to attempt to chain up to them.

11 years agoAdwaita: remove borders from flat frames
Lapo Calamandrei [Fri, 27 Jun 2014 12:53:31 +0000 (14:53 +0200)]
Adwaita: remove borders from flat frames

11 years agoAdwaita: remove borders from scrollbars junction
Lapo Calamandrei [Fri, 27 Jun 2014 12:47:29 +0000 (14:47 +0200)]
Adwaita: remove borders from scrollbars junction